﻿<div id="page">
<div class="page-title" style="z-index: 780;">
	<div class="in" style="z-index: 770;">
			<div class="titlebar" style="z-index: 760;">	<h2>Tỉ Lệ Chọi</h2> <p>Quản lý tin nhăn trả về</p></div>
			<div class="clear" style="z-index: 740;"></div>
	</div>
</div>

<div class="content" style="z-index: 730;">
<div class="simplebox grid740" style="z-index: 500;">

	<div class="titleh" style="z-index: 490;">
		<h3>Danh sách Tỉ Lệ Chọi<?php if($find != '') echo ' | Search with "'.$find.'"' ?></h3>
		<div class="shortcuts-icons" style="z-index: 640;">
			<a class="shortcut tips" href="<?php echo $base_url; ?>/tilechoi/add" original-title="Th&#234;m m&#7899;i">
			<img width="25" height="25" alt="icon" src="<?php echo $static_url ?>img/icons/shortcut/plus.png">
		</a>
		</div>
	</div>
		
		<table class="tablesorter" id="myTable"> 
			<thead> 
				<tr> 
					<th class="header">Tiêu đề</th>
                    <th class="header">Nội dung</th> 
					<th class="header">Link</th>
					<th class="header">Cú pháp</th>
				</tr> 
			</thead>
			
			<tbody> 
				<?php
				if(!empty($items)){
					foreach($items as $tilechoi){
				?>
				<tr> 
					<td><div class="context" style="position:relative;"><a href="<?php echo $base_url ?>/tilechoi/edit/<?php echo $tilechoi['tilechoi_id'] ?>" style=""><?php echo $tilechoi['tieude'] ?></a>
						<div style="position:absolute; right:0;top:0;z-index:5px;display:none;" class="context_opt" id="context_<?php echo $tilechoi['tilechoi_id'] ?>">
						<a title="X&#243;a b&#224;i vi&#7871;t" href="javascript:void(0)" onClick="deleteUser(<?php echo $tilechoi['tilechoi_id'] ?>)"><img src="<?php echo $static_url ?>/img/icons/sidemenu/trash.png" width="12"></a>
						</div>
					</div></td> 
                    <td><?php echo $tilechoi['noidung'] ?></td> 
					<td><?php echo $tilechoi['link'] ?></td> 
					<td><?php echo $tilechoi['cuphap'] ?></td> 
				</tr> 
				<?php
					}
				}
				?>
				
			</tbody> 
		</table>
		<script language="javascript" type="text/javascript">
		$(document).ready(function(){
			$("div[class='context']").hover(
			function(){
				$(this).children(".context_opt").show();
			},
			function(){
				$(this).children(".context_opt").fadeOut('fast');
			});
		});
		</script>
</div>
<?php if(!empty($paginate)): ?>
<ul class="pagination">
<?php echo $paginate; ?>
</ul>
<?php endif; ?>
</div>
</div>